package com.bwie.record.service.impl;

import com.bwie.record.domain.DataTwo;
import com.bwie.record.mapper.DataTwoMapper;
import com.bwie.record.service.DataTwoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName DataTwoServiceImpl
 * @Description 描述
 * @Author ZiZheng.Li
 * @Date 2024/7/7 16:43
 */
@Service
public class DataTwoServiceImpl implements DataTwoService {
    @Autowired
    private DataTwoMapper dataTwoMapper;
    @Override
    public int addDataTwo(DataTwo dataTwo) {
        return dataTwoMapper.insert(dataTwo);
    }

    @Override
    public int updateDataTwo(DataTwo dataTwo) {
        return dataTwoMapper.update(dataTwo);
    }

    @Override
    public DataTwo findById(String id) {
        return dataTwoMapper.findById(id);
    }

    @Override
    public List<DataTwo> findAll() {
        return dataTwoMapper.findAll();
    }
}
